﻿using S7Demo.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S7Demo.Model
{
    public class ConfigModel : NotifyBase
    {
        private string ip;

        public string Ip
        {
            get { return ip; }
            set
            {
                ip = value;
                this.NotifyChanged();
            }
        }

        private string _plcType;

        public string PlcType
        {
            get { return _plcType; }
            set { _plcType = value; this.NotifyChanged(); }
        }

        private int _rack;

        public int Rack
        {
            get { return _rack; }
            set { _rack = value; this.NotifyChanged(); }
        }

        private int _slot;

        public int Slot
        {
            get { return _slot; }
            set { _slot = value; this.NotifyChanged(); }
        }

        private string _writeAddr;

        public string WriteAddr
        {
            get { return _writeAddr; }
            set { _writeAddr = value; this.NotifyChanged(); }
        }

        private string _writeDataType;

        public string WriteDataType
        {
            get { return _writeDataType; }
            set { _writeDataType = value; this.NotifyChanged(); }
        }

        private string _readAddr;

        public string ReadAddr
        {
            get { return _readAddr; }
            set { _readAddr = value; this.NotifyChanged(); }
        }

        private string _readData;

        public string ReadData
        {
            get { return _readData; }
            set { _readData = value; this.NotifyChanged(); }
        }

    }
}
